

package org.smallbun.fast.manage.role.service.impl;

import org.smallbun.fast.manage.notify.dao.SysNotifyRecordMapper;
import org.smallbun.fast.manage.notify.entity.SysNotifyRecordEntity;
import org.smallbun.fast.manage.role.service.SysNotifyRecordService;
import org.smallbun.fast.manage.user.entity.SysUserEntity;
import org.smallbun.framework.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 通知通告发送记录 服务实现类
 * </p>
 *
 * @author SanLi
 * @since 2019-03-07
 */
@Service
public class SysNotifyRecordServiceImpl extends BaseServiceImpl<SysNotifyRecordMapper, SysNotifyRecordEntity>
		implements SysNotifyRecordService {

	/**
	 * 根据通知公告id删除记录
	 * @param id
	 */
	@Override
	public void delByNotifyId(String id) {
		baseMapper.delByNotifyId(id);
	}

    /**
     * 根据通知公告获取用户
     *
     * @param id
     * @return
     */
    @Override
    public List<SysUserEntity> findUserByNotifyId(Long id) {
        return baseMapper.findUserByNotifyId(id);
    }
}
